<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <jsp:include page="/static/common/easyui_header.jsp"></jsp:include>
    <script type="text/javascript" src="/static/js/views/tuitionIncome.js"></script>
    <title>收款管理</title>
</head>
<body>
    <%--工具栏--%>
    <div id="tuitionIncome_datagrid_toolbar">
        <a class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="addIncome">新增</a>
        <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reloadIncome">刷新</a>
        <input id="ss" class="easyui-searchbox"
               data-options="searcher:search,prompt:'学员姓名'" name="keyword">
        <a id="btn_changeState" class="easyui-linkbutton" iconCls="icon-audit" plain="true" data-cmd="audit">审核</a>
        <a id="btn_edit" class="easyui-linkbutton" iconCls="icon-edit" plain="true" data-cmd="editIncome">编辑</a>
        <a id="btn_delete" class="easyui-linkbutton" iconCls="icon-remove" plain="true" data-cmd="deleteIncome">删除</a><%--未审核之前可以删除--%>
    </div>

    <table id="tuitionIncome_datagrid"></table>
    <%--新增/保存的dialog弹窗--%>
    <div id="tuitionIncome_dialog" class="easyui-dialog" style="width: 350px;height: 450px"
                    data-options="title:'学员缴费',closed:true,buttons:'#tuitionIncome_add_form_btns',top:10">
        <form id="tuitionIncome_add_form" method="post">
            <input type="hidden" name="id" id="tuitionIncomeId">
            <table align="center" style="margin-top: 20px" cellspacing="10px" cellpadding="5px">
                <tr>
                    <td>学员姓名</td>
                    <td><input id="cc1" name="student.id" class="easyui-combobox"
                               data-options="url:'/formalStudent/listAllNotYetPay',valueField:'id',textField:'studentName',panelHeight:'auto'"/>
                    </td>
                </tr>
                <tr>
                    <td>班级</td>
                    <td><input id="cc2"  readonly="true"/>
                        <input id="cc3" name="clz.id" type="hidden">
                    </td>
                </tr>
                <tr>
                    <td>收款时间</td>
                    <td><input class="easyui-datebox" name="paymentTime"/></td>
                </tr>
                <tr>
                    <td>收款金额</td>
                    <td><input type="text" name="amountMoney">
                    </td>
                </tr>
                <tr>
                    <td>未缴学费</td>
                    <td><input id="cc4" name="remainPaid" readonly="true"></td>
                </tr>
                <tr>
                    <td>缴费方式</td>
                    <td><input class="easyui-combobox"
                               data-options="url:'/systemDictionaryItem/listAllItemBySn?sn=size',valueField:'id',textField:'name',panelHeight:'auto'"
                               name="paymentMethod.id"></td>
                </tr>
                <tr>
                    <td>经办人</td>
                    <td><input  class="easyui-combobox" name="cashier.id"
                                data-options="url:'/employee/listAll',valueField:'id',textField:'username',panelHeight:'auto'"
                    ></td>
                </tr>
                <tr>
                    <td>备注</td>
                    <td><input type="text"  name="myRemark"></td>
                </tr>
            </table>
        </form>
    </div>
    <%--增加/编辑弹窗的btn--%>
    <div id="tuitionIncome_add_form_btns">
        <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="saveIncomeForm">保存</a>
        <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancelIncomeForm">取消</a>
    </div>
</body>
</html>
